package com.viptail.xiaogouzaijia.model.imp;


import com.viptail.xiaogouzaijia.api.RetrofitManager;
import com.viptail.xiaogouzaijia.bean.special.SpecialBean;
import com.viptail.xiaogouzaijia.model.ISpecialModel;

import java.util.Map;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by WangZhiChao on 2016/10/31.
 */

public class SpecialModelImpl implements ISpecialModel {

    @Override
    public void getSpecialData(Subscriber<SpecialBean> subscriber, Map<String, String> params) {
        RetrofitManager
                .getInstance()
                .getSpecialService()
                .getSpecialData(params)
                .observeOn(AndroidSchedulers.mainThread())
                .subscribeOn(Schedulers.io())
                .subscribe(subscriber);
    }
}
